<template>
  <div>
    <el-table
      :data="tableData"
      border
      style="width: 100%"
      height="950">
      <el-table-column
        prop="createTime"
        label="日期">
      </el-table-column>
      <el-table-column
        prop="dayCount"
        label="金额">
      </el-table-column>
      <!--<el-table-column-->
        <!--prop="weekCount"-->
        <!--label="日额">-->
      <!--</el-table-column>-->
      <!--<el-table-column-->
        <!--prop="monthCount"-->
        <!--label="月额">-->
      <!--</el-table-column>-->
    </el-table>
    <!--分页-->
    <el-pagination
      style="margin-top: 20px"
      background
      layout="prev, pager, next"
      :total="1000">
    </el-pagination>
  </div>
</template>

<script>
  import axios from 'axios'
  export default {
    created(){
      axios.get("/topup").then(resp => {
        if(resp.data.result){
          console.log(resp.data.msg)
          this.tableData = resp.data.msg
        }
      })
    },
    data() {
      return {
        tableData: [{
          createTime: '2016-05-03',
          dayCount: '2016-05-03',
          weekCount: '2016-05-03',
          monthCount: '2016-05-03',
        }],
      }
    }
  }
</script>

<style scoped>

</style>

